package com.yuma.all.func;


import java.util.function.Function;

public class RecruitServiceFunction implements Function<RecruitServiceFunction.Request, RecruitServiceFunction.Response> {

    @Override
    public Response apply(Request request) {
        String position = "未知";
        if (request.name.contains("崔济巍")){
            position = "java开发工程师";
        }
        return new Response(position);
    }

    public record Request(String name) {
    }
    public record Response(String position) {
    }
}
